/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ResourceManager;
import GameObject.*;

/**
 *
 * @author NGUYEN VAN TAM
 */
public class EntityManager {
    protected VisibleGameObject[] _prototype;
    protected int _nprototype;

    public void InitPrototype()
    {
        _nprototype = 0;
    }
    public VisibleGameObject CreateObject(int index)
    {
        if ((index < 0) || (index >= _nprototype))
        {
            return null;
        }
        return (VisibleGameObject)_prototype[index].Clone();
    }
}
